<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改会议文件;')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-papers-edit" th:object="${conferencePapers}">
            <input name="papersId" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">会议文件名称;会议文件名称：</label>
                <div class="col-sm-8">
                    <input name="papersName" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">会议文件转化前地址;会议文件转化前地址：</label>
                <div class="col-sm-8">
                    <input name="papersOldUrl" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">会议文件转化后地址;会议文件转化后地址：</label>
                <div class="col-sm-8">
                    <input name="papersNewUrl" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">文件排序;文件排序：</label>
                <div class="col-sm-8">
<!--                    <input name="papersSort" th:field="*{papersSort}" class="form-control" type="text">-->
                    <input name="papersSort" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">文件状态;上传中；上传成功；上传失败；转化中：</label>
                <div class="col-sm-8">
                    <input name="papersState" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">提示;文件上传的提示：</label>
                <div class="col-sm-8">
                    <input name="papersPrompt" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">所属父级：</label>
                <div class="col-sm-8">
                    <input name="papersParent" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">创建人;创建人：</label>
                <div class="col-sm-8">
                    <input name="createdBy" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">创建时间;创建时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="createdTime" th:value="${#dates.format(conferencePapers.createdTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">更新人;更新人：</label>
                <div class="col-sm-8">
                    <input name="updatesBy" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">更新时间;更新时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="updatesTime" th:value="${#dates.format(conferencePapers.updatesTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">会议ID  外键;会议ID  外键：</label>
                <div class="col-sm-8">
                    <input name="conferenceId" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">删除标识;1：未删除；0：已删除：</label>
                <div class="col-sm-8">
                    <input name="deletionFlag" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/papers";
        $("#form-papers-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-papers-edit').serialize());
            }
        }

        $("input[name='createdTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='updatesTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>
